test-setup.spec.js ➔ before   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
nc 1
dl 0
loc 3
rs 10
nop 0
1
import sinon from 'sinon'
2
import chai from 'chai'
3
import sinonChai from 'sinon-chai'
4
5
before(function(){
6
	chai.use(sinonChai)
7
})
8
9
beforeEach(function(){
10
	this.sandbox = sinon.sandbox.create()
11
})
12
13
afterEach(function(){
14
	this.sandbox.restore()
15
})